package com.lanyam.travel.base.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 	首页轮播图实体类
 * @author asus
 *
 */
@TableName("home_index")
public class HomeProduct {
	
	@JsonProperty(value="id")
	@TableId
	private String id;
	/**
	 * 	banner的标题
	 */
	@JsonProperty(value="title")
	@TableField("title")
	private String title;
	/**
	 * 轮播图中对应产品的id
	 */
	@JsonProperty(value="productId")
	@TableField("product_id")
	private String productId;
	
	/**
	 * banner的序号
	 */
	@JsonProperty(value="bannerIndex")
	@TableField("banner_index")
	private Integer bannerIndex;
	
	/**
	 * banner的图片路径
	 */
	@JsonProperty(value="img")
	@TableField("img")
	private String img;
	/**
	 * 轮播图中产品的种类：0为景点,1为酒店 ，2为旅游线路
	 */
	@JsonProperty(value="productType")
	@TableField("product_type")
	private int productType;
	
	/**
	 * banner的详细说明
	 */
	@JsonProperty(value="detail")
	@TableField("detail")
	private String detail;
	
	/**
	 * banner创建的日期
	 */
	@JsonProperty(value="createTime")
	@TableField("create_time")
	private Date createTime;
	
	/**
	 * banner的更新的日期
	 */
	@JsonProperty(value="updateTime")
	@TableField("update_time")
	private Date updateTime;
	
	/**
	 * 	轮播图对应的产品：景点/酒店/线路
	 * 	transient修饰不对应数据库字段
	 */
	@JsonProperty(value="product")
	@TableField(exist = false)
	private Product product;
	
	
	
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Integer getBannerIndex() {
		return bannerIndex;
	}
	public void setBannerIndex(Integer bannerIndex) {
		this.bannerIndex = bannerIndex;
	}
	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}
	public String getDetail() {
		return detail;
	}
	public void setDetail(String detail) {
		this.detail = detail;
	}
	public Product getProduct() {
		return product;
	}
	public void setProduct(Product product) {
		this.product = product;
	}
	public int getProductType() {
		return productType;
	}
	public void setProductType(int productType) {
		this.productType = productType;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	
}
